#一些函数中可直接使用可迭代对象
print(all([0,2,4,1,3,5]))     #所有对象都为真时返回True
print(any([0,2,4,1,3,5]))     #有一个对象为真时返回True
print(sum([0,2,4,1,3,5]))     #求和
print(sorted([0,2,4,1,3,5]))  #排序
print(min([0,2,4,1,3,5]))     #求最小值
print(max([0,2,4,1,3,5]))     #求最大值
mf = open(r'D:\code.txt', 'r', encoding='utf-8')
print(min(mf))                #返回文件中所有行中的最小值
mf = open(r'D:\code.txt', 'r', encoding='utf-8')
print(max(mf))                #返回文件中所有行中的最大值
mf = open(r'D:\code.txt', 'r', encoding='utf-8')
print(list(mf))               #将文件内容转换为列表
mf = open(r'D:\code.txt', 'r', encoding='utf-8')
print(set(mf))                #将文件内容转换为集合
mf = open(r'D:\code.txt', 'r', encoding='utf-8')
print(tuple(mf))              #将文件内容转换为元组